home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / m / erf.man < prev    next >
Encoding:
Text File  |  1989-04-07  |  879 b   |  67 lines

  1.  
  2.  
  3.  
  4. ERF              Mathematical Library Procedures              ERF
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      erf, erfc - error functions
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ##iinncclluuddee <<mmaatthh..hh>>
  13.  
  14.      ddoouubbllee eerrff((xx))
  15.      ddoouubbllee xx;;
  16.  
  17.      ddoouubbllee eerrffcc((xx))
  18.      ddoouubbllee xx;;
  19.  
  20. DDEESSCCRRIIPPTTIIOONN
  21.      Erf(x) returns the error function of x; where
  22.  
  23.      erf(x) = 2/sqrt(pi)*integral from 0 to x of exp(-t*t) dt.
  24.  
  25.      Erfc(x) returns 1.0-erf(x).
  26.  
  27.      The entry for erfc is provided because of the extreme loss
  28.      of relative accuracy if erf(x) is called for large x and the
  29.      result subtracted from 1.  (e.g. for x = 10, 12 places are
  30.      lost).
  31.  
  32. SSEEEE AALLSSOO
  33.      math(3M)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 12, 1986                          1
  64.  
  65.  
  66.  
  67.